package com.example.demo03_mvm.repos;

import android.app.Notification;

import com.example.demo03_mvm.db.DBInstance;
import com.example.demo03_mvm.db.KfEntity;
import com.example.demo03_mvm.model.BaseModel;

import java.util.List;

import io.reactivex.functions.Action;
import io.reactivex.functions.Consumer;

public class KfRepos extends BaseModel {

    public void insert(KfEntity kf, Action action){
        update(DBInstance.getGoodsDataBase().getkfDao().insert(kf),action);
    }

    public void getMsgByGid(int gid, Consumer consumer){
        select(DBInstance.getGoodsDataBase().getkfDao().getMsgByGid(gid),consumer);
    }
}
